package com.simple.datax.bo.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.simple.datax.bo.IVwDataxEnterpriseBO;
import com.simple.datax.dao.IVwDataxEnterpriseDAO;
import com.simple.datax.vo.VwDataxEnterpriseVO;
import com.simple.util.object.PageInfoBean;

@Service("vwDataxEnterpriseBO")
@Transactional(propagation=Propagation.REQUIRED,readOnly=true)
public class VwDataxEnterpriseBOImpl implements IVwDataxEnterpriseBO {

	@Autowired
	private IVwDataxEnterpriseDAO vwDataxEnterpriseDAO;
	
	@Override
	public VwDataxEnterpriseVO findById(final String ecCode) {
		return vwDataxEnterpriseDAO.findById(ecCode);
	}

	@Override
	public List<VwDataxEnterpriseVO> findAll() {
		return vwDataxEnterpriseDAO.findAll();
	}

	@Override
	public List<VwDataxEnterpriseVO> findListByPage(String entCode,
			String entName, PageInfoBean pageInfoBean) {
		return vwDataxEnterpriseDAO.findListByPage(entCode, entName, pageInfoBean);
	}

	@Override
	public List<VwDataxEnterpriseVO> findForAutoComplete(String ecCode,
			PageInfoBean pageInfoBean) {
		return vwDataxEnterpriseDAO.findForAutoComplete(ecCode, pageInfoBean);
	}

}
